<!-- 
  - section组件
  - 其实就是uni-section的封装
 -->

<!--
  - 视图层
 -->
<template>
  <!-- 封装uni-section -->
  <uni-section
    :title="props.title"
    type="line"
    :padding="true"
  >
  <!-- 插槽 -->
  <slot></slot>
  </uni-section>
</template>

<!--
  - 逻辑层
-->
<script setup>
// 接收组件传参
const props = defineProps({
  // section的标题
  title: {
    type: String,
    required: false,
  }
})
</script>
